<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>
<div id="root">
<a href="" @click="showInfo">1333213</a>
<input type="text" value="注册" @click="showInfo" >
</div>
    <script>
         new Vue({
      el:"#root",
      data:{
          name:"尚硅谷"
      },
      methods: {
         showInfo(number,event){
            //  console.log(number,event.target);
             alert('注册成功')
         }
        
      }
  })

    </script>
</body>
</html>